﻿// WebZHX.Core/Entities/BaseEntity.cs
using Core.Interfaces;
using System;

namespace Core.Entities
{
    /// <summary>
    /// 基础实体
    /// </summary>
    /// <typeparam name="TKey">主键类型</typeparam>
    public abstract class BaseEntity<TKey> : IEntity<TKey>
    {
        /// <summary>
        /// 主键
        /// </summary>
        public virtual TKey Id { get; set; }

        ///// <summary>
        ///// 创建时间
        ///// </summary>
        //public DateTime CreatedTime { get; set; } = DateTime.UtcNow;

        ///// <summary>
        ///// 更新时间
        ///// </summary>
        //public DateTime? UpdatedTime { get; set; }

        /// <summary>
        /// 是否删除 
        /// </summary>
        public bool IsDeleted { get; set; }
    }
}